﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ViewPackage.aspx.vb" Inherits="ViewPackage" %>

<%@ Register TagPrefix="ajaxtoolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    
    <p>
        <asp:Label ID="Label1" runat="server" Text="View By"></asp:Label>
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
            <asp:ListItem>Please Choose One</asp:ListItem>
            <asp:ListItem>MailID</asp:ListItem>
            <asp:ListItem>Date Created</asp:ListItem>
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="Label2" runat="server" Text="MailID" Visible="False"></asp:Label>
        <asp:TextBox ID="TBSearch" runat="server" Visible="False"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="Label3" runat="server" Text="Date Created" Visible="False"></asp:Label>
        <asp:TextBox ID="TBDateEdit" runat="server" Text="" Width="150"
            Visible="False"></asp:TextBox>
        <ajaxtoolkit:CalendarExtender ID="DateSelect" Format="dd-MM-yyyy" runat="server"
            TargetControlID="TBDateEdit">
        </ajaxtoolkit:CalendarExtender>

        &nbsp;
    </p>
    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" CellPadding="4"
        ForeColor="#333333" GridLines="None"
        AllowPaging="True" Width="904px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="ID"
                DataNavigateUrlFormatString="~/Details.aspx?id={0}" Text="Select" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:MailSystem32ConnectionString %>"
        SelectCommand="SELECT [ID], [ParcelType], [Fragile], [Price], [Sender], [Receiver], [Destination], [Global], [CurrentLocation], [Status] FROM [vPackageLocation]"></asp:SqlDataSource>

</asp:Content>

